package vip.mtdp.gateway.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.mtdp.common.response.CommonResponse;

/**
 * @author wangguoqing
 * @since 2020/5/1 22:10
 **/

@Slf4j
@RestController
public class DefaultFallbackController {


    @RequestMapping("/default/fallback")
    public CommonResponse defaultCallback(){
        log.info("default callback");
        return new CommonResponse<String>(String.valueOf(HttpStatus.SERVICE_UNAVAILABLE.value()),HttpStatus.SERVICE_UNAVAILABLE.getReasonPhrase(),"");
    }

}
